/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bean;

/**
 *
 * @author Sergio
 */
public class calcBean implements java.io.Serializable{
    
    
    private int value1;
    private int value2;
    private int suma;
    
    
    
    
    public void setValue1(int num1)
    {
        value1 = num1;
    }
    
    public void setValue2(int num2)
    {
        value2 = num2;
    }
    
    public int getSum()
    {
        return suma=value1+value2;
    }
}
